package com.weblog.spider.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: wml
 */
@Entity(name = "tb_user")
@Table(name = "tb_user")
public class User  implements  Serializable {
    private static final long serialVersionUID=-4418846654942943999L;

    /**
     * 用户id
     */
    @Id
    private String id;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 性别 0女 1男
     */
    private String gender;

    /**
     * 密码
     */
    private String password;

    /**
     * 登录名（登录账号）
     */
    private String loginname;

    /**
     * 昵称
     */
    private String username;

    /**
     * 注册日期
     */
    private Date regisdate;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 头像地址
     */
    private String avatar;

    /**
     * 最后登录时间
     */
    private Date lastlogin;

    /**
     * 粉丝数
     */
    private int fansnum;

    /**
     * 关注数
     */
    private int follownum;

    /**
     * 是否被拉黑 1被拉黑 0正常
     */
    private String isblack;

    /**
     * 分数
     */
    private int score;

    /**
     * 生日
     */
    private Date birthday;

    /**
     * 在线时长
     */
    private Long onlinetime;




    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", mobile='" + mobile + '\'' +
                ", gender='" + gender + '\'' +
                ", password='" + password + '\'' +
                ", loginname='" + loginname + '\'' +
                ", username='" + username + '\'' +
                ", regisdate=" + regisdate +
                ", email='" + email + '\'' +
                ", avatar='" + avatar + '\'' +
                ", lastlogin=" + lastlogin +
                ", fansnum=" + fansnum +
                ", follownum=" + follownum +
                ", isblack='" + isblack + '\'' +
                ", score=" + score +
                ", birthday=" + birthday +
                ", onlinetime=" + onlinetime +
                '}';
    }



    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getRegisdate() {
        return regisdate;
    }

    public void setRegisdate(Date regisdate) {
        this.regisdate = regisdate;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getLastlogin() {
        return lastlogin;
    }

    public void setLastlogin(Date lastlogin) {
        this.lastlogin = lastlogin;
    }


    public String getIsblack() {
        return isblack;
    }

    public void setIsblack(String isblack) {
        this.isblack = isblack;
    }

    public int getFansnum() {
        return fansnum;
    }

    public void setFansnum(int fansnum) {
        this.fansnum = fansnum;
    }

    public int getFollownum() {
        return follownum;
    }

    public void setFollownum(int follownum) {
        this.follownum = follownum;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Long getOnlinetime() {
        return onlinetime;
    }

    public void setOnlinetime(Long onlinetime) {
        this.onlinetime = onlinetime;
    }
}
